package com.example.bodyinfo.service;

import com.example.bodyinfo.dao.CoordinateRepository;
import com.example.bodyinfo.dao.userinfoRepository;
import com.example.bodyinfo.model.coordinate;
import com.example.bodyinfo.model.userinfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class CoordinateService {
    @Autowired
    CoordinateRepository coordinateRepository;
    public coordinate findById(int id){
        return coordinateRepository.findById(id).get();
    }


}
